<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <p>v-for:循环生成结构相同内容不同的元素，使用场景：各种列表或重复的内容</p>
        <p v-for="item in arr1">{{item}}</p>
        <button v-for="num in 5">{{num}}</button>
    </div>
    <script src="./vue.js"></script>
    <script>
        var For = {
            data() {
                return {
                    arr1: [
                        '唱','跳','rap','打篮球'
                    ]
                }
            }
        }
        Vue.createApp(For).mount('#app');
    </script>
</body>
</html>